/**
 * 
 */

/**
 * @author yaoshen.yu.128@gmail.com
 *
 */
import java.util.Arrays;

public class Example2_5 {
	public static void main (String args[]) {
		char []a = {'a','b','c','d','e','f'},
				b = {'1','2','3','4','5','6'};
		int []c = {1,2,3,4,5,6},
				d = {10,20,30,40,50,60};
		System.arraycopy(a, 0, b, 0, a.length);
		System.arraycopy(c, 2, d, 2, c.length-3);
		System.out.println("数组a的各个元素中的值：");
		System.out.println(Arrays.toString(a));
		System.out.println("数组b的各个元素中的值：");
		System.out.println(Arrays.toString(b));
		System.out.println("数组c的各个元素中的值：");
		System.out.println(Arrays.toString(c));
		System.out.println("数组d的各个元素中的值：");
		System.out.println(Arrays.toString(d));
	}
}
